package com.cloudkinto.dto.platform.order;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class PlatOrderPageRes {

    private Long id;

    private String basketId;

    @ApiModelProperty("状态 0待处理 1带获取平台面单 2处理中 3已发货 4已取消 5异常")
    private Integer status;


//    @ApiModelProperty("待获取平台面单 子状态 0无 10获取异常 11获取中 12 生成出库单失败")
//    private Integer subStatus;
//
//
//    @ApiModelProperty("订单号")
//    private String orderNo;

    @ApiModelProperty("平台单号")
    private String platformOrderNo;

    @ApiModelProperty(" 平台 amazon shopify")
    private String platformCode;


    @ApiModelProperty("店铺id")
    private Long storeId;

    @ApiModelProperty("店铺")
    private String storeName;

    @ApiModelProperty("站点 US 等等")
    private String site;

    @ApiModelProperty("买家姓名")
    private String buyerName;

    @ApiModelProperty("买家邮箱")
    private String buyerEmail;

    @ApiModelProperty("订单备注")
    private String remark;

    @ApiModelProperty("发货仓库")
    private String sendWhName;
    private Long sendWhId;

    private Long channelId;
    @ApiModelProperty("物流渠道")
    private String channelName;

    private String channelCode;

    @ApiModelProperty("承运商 如 ups等")
    private String logisticsCarrier;

    @ApiModelProperty("跟踪号")
    private String trackNo;

    @ApiModelProperty("收件人")
    private String receiver;

    @ApiModelProperty("电话")
    private String telephone;


    @ApiModelProperty("国家地区 如 US(United States of America)，")
    private String countryRegionCode;

    @ApiModelProperty("省/州 缩写")
    private String provinceCode;


    @ApiModelProperty("省/州 全称")
    private String provinceName;


    @ApiModelProperty("城市名称")
    private String cityCode;

    @ApiModelProperty("区/县")
    private String district;

    @ApiModelProperty("邮编")
    private String postcode;

    @ApiModelProperty("门牌号")
    private String houseNum;

    @ApiModelProperty("地址1")
    private String addressOne;

    @ApiModelProperty("地址2")
    private String addressTwo;

    @ApiModelProperty("地址3")
    private String addressTri;

    @ApiModelProperty("标发状态 0无 1标发中 2标发失败 3标发成功 4不标发 5待标发")
    private Integer markShipmentStatus;


    @ApiModelProperty("标发时间")
    private Date markShipmentTime;


    @ApiModelProperty("标发失败原因")
    private String markShipmentFailReason;

    @ApiModelProperty(" 亚马逊才有 AFN MFN")
    private String fulfillmentChannel;

    @ApiModelProperty("卖家类型 Seller Vendor")
    private String sellerType;


    @ApiModelProperty("审核失败原因")
    private String auditCause;

    @ApiModelProperty("异常原因")
    private String exceptionCause;


    @ApiModelProperty("审核时间")
    private Date auditTime;

    @ApiModelProperty("audit_by")
    private Long auditBy;

    private String auditByName;

    @ApiModelProperty("总金额")
    private BigDecimal totalAmount;

    @ApiModelProperty("币种")
    private String currencyCode;


    private Date createTime;

    private Long createBy;

    private String createByName;

    @ApiModelProperty("下单时间")
    private Date orderTime;


    @ApiModelProperty("付款时间")
    private Date payTime;

    @ApiModelProperty("发货时间")
    private Date shipTime;

    @ApiModelProperty("发货人")
    private String shipByName;

    private Long shipBy;

    @ApiModelProperty("取消时间")
    private Date cancelTime;

    private Long cancelBy;
    @ApiModelProperty("取消人")
    private String cancelByName;


    @ApiModelProperty("取消方式 0平台同步取消 1手动取消")
    private Integer cancelWay;


    @ApiModelProperty("分配时间")
    private Date distributeTime;


    @ApiModelProperty("分配人")
    private Long distributeBy;



//    @ApiModelProperty(" 上次更新时间 只有亚马逊有")
//    private Date lastUpdateDate;

//    @ApiModelProperty("履约方式 0仓库面单 1平台面单")
//    private Integer deliveryOptionType;

    @ApiModelProperty("预约开始时间")
    private Date reserveBeginTime;

    @ApiModelProperty("预约结束时间")
    private Date reserveEndTime;


    @ApiModelProperty("0日常 1预约单 2次日达")
    private Integer reserveFlag;

    @ApiModelProperty("平台sku")
    private String platformSkus;

    @ApiModelProperty("系统sku")
    private String skus;

    @ApiModelProperty("公司id， 勿删")
    private Long companyId;
    @ApiModelProperty("公司id， 勿删")
    private Long tenantId;

    private String deliveryDate;

    private String deliveryTimeName;

    private  Long defaultSendMailId;

}
